package win.larryzeal.jmx.mbean.standard;

/**
 * 因为Standard MBean命名规范的限制，对象名称必须为Hello。
 *
 * Created by 张少昆 on 2017/8/16.
 */
public class Hello implements HelloMBean {
    private String name;

    @Override
    public String getName(){
        return name;
    }

    @Override
    public void setName(String name){
        this.name = name;
    }

    @Override
    public void printHello(){
        System.out.println("Hello world, " + name);
    }

    @Override
    public void printHello(String whoName){
        System.out.println("Hello, " + whoName);
    }
}